Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds uv support and toml file #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SermetPekin
Copy link

  • adds uv support
    created a pyproject.toml file
  • adds init.py file to test folder
  • adds a few lines to .gitignore not to pollute this beautiful repository with environment and build folders
.idea/
.venv/
*.egg-info
build/
.python-version
__pycache__/
  • usage becomes easier thanks to awesome uv package such as
uv pip install . 
uv run main.py

@SermetPekin
Copy link
Author

  • copied draw_dot function to micrograd folder to file named graph.py.
  • simplified importing Value, draw_dot functions by adding them to __init__.py file
#micrograd/__init__.py
from micrograd.engine import Value
from micrograd.graph import draw_dot

Now they can be imported from micrograd

from micrograd import nn, Value, draw_dot

n = nn.Neuron(2)
x = [Value(1.0), Value(-2.0)]
y = n(x)
dot = draw_dot(y)
assert dot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant